
public class homework18 {
    public static void main(String[] args) {
        int  i, j;
        for(i = 2; i <= 99; i++)
        {
            j = i * i;
            if(j % 10 == i)
                System.out.printf("%d,%d\n",i,j);
        }    }

}




